package primitive;

import primitive.Arena.Bot;

public class ZombieBot extends Bot{
	public ZombieBot(Arena arena){
		arena.super();
	}
	@Override
	public void run() {
		int choice = (int) (Math.random() * 8);
		switch (choice){
		case 0:
			super.move(Arena.UP);
			break;
		case 1:
			super.move(Arena.DOWN);
			break;
		case 2:
			super.move(Arena.LEFT);
			break;
		case 3:
			super.move(Arena.RIGHT);
			break;
		case 4:
			super.shoot(Arena.UP);
			break;
		case 5:
			super.shoot(Arena.DOWN);
			break;
		case 6:
			super.shoot(Arena.LEFT);
			break;
		case 7:
			super.move(Arena.RIGHT);
			break;
			
		}
	}

}
